<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
{% load static %}
<head>
    <meta charset="UTF-8">
    <title>Rango</title>
</head>
<body>

<h1>Tango Says...</h1><br/>
This is Index Page!<br/>
<!--
<strong>{{ blodmessage }}</strong><br/>
<img src="{% static "images/hua.jpg" %}" width="300" height="300" alt="Picture of hua"/><br/>
<a href="/Rango/about/">About</a>
<strong>{{ Categories }}</strong>
-->
{% if Categories %}
    <ul>
        {% for category in Categories %}
            <li><a href="/Rango/category/{{ category.slug }}">{{ category.name }}</a></li>
        {% endfor %}
    </ul>
{% else %}
    <strong>These are no categories peresent.</strong>
{% endif %}
{% if user.is_authenticated %}
    <a href="/Rango/add_category/">Add a New Cagegory</a><br/>
    <a href="/Rango/logout/">Logout</a>
{% else %}
    <a href="/Rango/register/">Register</a><br/>
    <a href="/Rango/login/">Login</a>
{% endif %}
<a href="/Rango/about/">About</a><br/>

</body>
</html>